<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<s:actionmessage/>
<s:actionerror/>
<s:if test="tStudentEntityList.size() > 0">
	<div class="content">
	<table class="userTable" cellpadding="5px">
		<tr class="even">
			<th>#</th>
			<th>Mã thí sinh</th>
			<th>Họ đệm</th>
			<th>Tên</th>
			<th>Ngày sinh</th>
			<th>Giới tính</th>
			<th>Địa chỉ</th>
			<th>Lớp</th>
			<th>Khóa</th>
			<th>Hành động</th>
		</tr>
		<s:iterator value="tStudentEntityList" status="userStatus">
			<tr
				class="<s:if test="#userStatus.odd == true ">odd</s:if><s:else>even</s:else>">
				<td><s:property value="studentId" /></td>
				<td><s:property value="studentCd" /></td>
				<td><s:property value="firstName" /></td>
				<td><s:property value="lastName" /></td>
				<td><s:date name="birthday" format="dd/MM/yyyy" /></td>
				<td><s:property value="gender" /></td>
				<td><s:property value="address" /></td>
				<td><s:property value="studentClass" /></td>
				<td><s:property value="course" /></td>
				<td colspan="3">
					<s:url id="viewURL" action="viewStudent">
						<s:param name="studentCd" value="%{studentCd}"></s:param>
					</s:url> <s:a href="%{viewURL}">View</s:a> | 
					<s:url id="editURL" action="editStudent">
						<s:param name="studentId" value="%{studentId}"></s:param>
					</s:url> <s:a href="%{editURL}">Edit</s:a> |
					<s:url id="deleteURL" action="deleteStudent">
						<s:param name="studentId" value="%{studentId}"></s:param>
					</s:url> <s:a href="%{deleteURL}">Delete</s:a></td>
			</tr>
		</s:iterator>
	</table>
	</div>
</s:if>
<s:a href="addStudent.action">Add Student</s:a>
<s:a href="default.action">Home</s:a>
